package com.skytech.tax.customsdatawarehouse.singlewindow.taxhandle.domain.entity;

import com.alibaba.fastjson.JSONObject;
import org.joda.time.DateTime;

public class GuaranteeLetter {

    private String seqNo;            //保函编号
    private String bankGuaNo;        //保函/保险编号
    private String guaNo;            //海关保函/保险编号
    private String validDate;        //有效期至
    private String data;             //保函数据
    private String socialCreditCode; //企业社会信用代码
    private String storageTime;      //入库时间

    public GuaranteeLetter() {
    }

    public GuaranteeLetter(String socialCreditCode, JSONObject data) {
        this.socialCreditCode = socialCreditCode;
        this.data = data.toJSONString();
        this.seqNo = data.getString("seqNo");
        this.bankGuaNo = data.getString("bankGuaNo");
        this.guaNo = data.getString("guaNo");
        this.validDate = data.getString("validDate");
        this.storageTime = DateTime.now().toString("yyyy-MM-dd HH:mm:ss");
    }

    public String getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(String seqNo) {
        this.seqNo = seqNo;
    }

    public String getBankGuaNo() {
        return bankGuaNo;
    }

    public void setBankGuaNo(String bankGuaNo) {
        this.bankGuaNo = bankGuaNo;
    }

    public String getGuaNo() {
        return guaNo;
    }

    public void setGuaNo(String guaNo) {
        this.guaNo = guaNo;
    }

    public String getValidDate() {
        return validDate;
    }

    public void setValidDate(String validDate) {
        this.validDate = validDate;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getSocialCreditCode() {
        return socialCreditCode;
    }

    public void setSocialCreditCode(String socialCreditCode) {
        this.socialCreditCode = socialCreditCode;
    }

    public String getStorageTime() {
        return storageTime;
    }

    public void setStorageTime(String storageTime) {
        this.storageTime = storageTime;
    }
}
